class Log {
    constructor() {
        this.INFO_TEXT = "INFO";
        this.WARN_TEXT = "WARN";
        this.DEBUG_TEXT = "DEBUG";
        this.ERROR_TEXT = "ERROR";
        this.INFO_STYLE =
            "background:#26394d;color:white;font-weight:bold;padding:4px;font-size:10px";
        this.WARN_STYLE =
            "background:#bb9b6e;color:white;font-weight:bold;padding:4px;font-size:10px";
        this.DEBUG_STYLE =
            "background:#5ad9bb;color:white;font-weight:bold;padding:4px;font-size:10px";
        this.ERROR_STYLE =
            "background:red;color:white;font-weight:bold;padding:4px;font-size:10px";
        this.info("日志模块注册成功");
    }
    error(errInfo) {
        console.log(`%c${this.ERROR_TEXT}`, this.ERROR_STYLE, ":", errInfo);
    }
    info(infoStr) {
        console.log(`%c${this.INFO_TEXT}`, this.INFO_STYLE, ":", infoStr);
    }
    warn(warnStr) {
        console.log(`%c${this.WARN_TEXT}`, this.WARN_STYLE, ":", warnStr);
    }
    debug(debugInfo) {
        console.log(`%c${this.DEBUG_TEXT}`, this.DEBUG_STYLE, ":", debugInfo);
    }
}

export default new Log();
